package com.xindz.hgq.database.greendao.bean;

import com.xindz.hgq.database.greendao.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.greenrobot.greendao.annotation.Generated;

/**
 * @name HGQBase
 * @class name：com.xindz.hgq.database.greendao.bean
 * @describe describe
 * @anthor XINDZ
 * @time 2018/5/15 17:09
 * @change
 * @chang time
 * @class describe
 */
@Entity(nameInDb = "dataCache")
public class DataCacheBean implements Serializable {
    private static final long serialVersionUID = -4448083184270126444L;
    @Id
    private String key;//唯一标识

    @Convert(columnType = String.class,converter = StringConverter.class)
    private List<String> cacheData;//缓存网络数据

    private Date createAt;//创建时间

    @Generated(hash = 493148367)
    public DataCacheBean(String key, List<String> cacheData, Date createAt) {
        this.key = key;
        this.cacheData = cacheData;
        this.createAt = createAt;
    }

    @Generated(hash = 2077735162)
    public DataCacheBean() {
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<String> getCacheData() {
        return this.cacheData;
    }

    public void setCacheData(List<String> cacheData) {
        this.cacheData = cacheData;
    }

    public Date getCreateAt() {
        return this.createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }




}
